package com.olympus.hermes.product.domain;

import com.olympus.hermes.common.support.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author Mickey
 * @since 2021/2/20
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "hermes_product_sku")
public class ProductSku extends AbstractEntity {

    private Long productId;
    /**
     * sku名称
     */
    private String name;
    /**
     * sku介绍描述
     */
    private String desc;
    /**
     * 所属分类id
     */
    private Long categoryId;
    /**
     * 品牌id
     */
    private Long brandId;
    /**
     * 默认图片
     */
    private String defaultImg;
    /**
     * 标题
     */
    private String title;
    /**
     * 副标题
     */
    private String subtitle;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
     * 销量
     */
    private Long saleCount;
}
